package com.vhall.component.controller.preparation.facade;


import com.vhall.component.entity.preparation.vo.GetInviteCardReqVO;
import com.vhall.component.entity.preparation.vo.GetInviteCardRespVO;
import com.vhall.component.entity.preparation.vo.JoinInviteCardReqVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author guoxin.wang
 * @date 2021/7/8 15:30
 */
@FeignClient(value = "InviteAdminFacade", path = "/v4/invite/admin")
public interface InviteAdminFacade {

    /**
     * 获取房间下邀请卡
     *
     * @param reqVO 参数
     * @return 返回值
     */
    @PostMapping(value = "/get-invite-card")
    GetInviteCardRespVO getInviteCard(@Validated GetInviteCardReqVO reqVO);

    /**
     * 邀请卡增加邀请记录
     *
     * @param reqVO 参数
     * @return 返回值
     */
    @PostMapping(value = "/join-invite")
    Boolean joinInvite(@Validated JoinInviteCardReqVO reqVO);

}
